<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/pages/common/taglib.jsp"%>

<c:forEach var="dayprice" varStatus="daypriceindex" items="${datas}">
	<tr>
		<td>
			${dayprice.id}
			<c:if test="${daypriceindex.index==0}"><input type="hidden" id="itemCount" value="${itemCount}"/></c:if>
		</td>
		<td class="keys">${dayprice.name}</td>
		<td style="color:red;">￥ ${dayprice.price==null?'':(tz:formatDouble(dayprice.price))}</td>
		<td>
			<c:if test="${dayprice.isError=='001'}">
				<span style="color:green">正常</span>
			</c:if>
			<c:if test="${dayprice.isError=='002'}">
				<span style="color:red">异常</span>
			</c:if>
		</td>
		<td class="tmui-tips" tip="${tz:formatDate(dayprice.createTime,'yyyy-MM-dd HH:mm:ss')}">
				${tz:timeFormat(dayprice.createTime)}
		</td>
		<%--<td>--%>
			<%--<tz:if test="${dayprice.deleteCode=='001'}">--%>
				<%--<tz:then><a href="javascript:void(0)" opid="${adminuser.id}" mark="deleteCode" val="002" onclick="tzAdmin.op(this);" class="green">否</a></tz:then>--%>
                	<%--<tz:else><a href="javascript:void(0)" opid="${adminuser.id}" mark="deleteCode" val="001" onclick="tzAdmin.op(this);" class="red">是</a></tz:else>--%>
			<%--</tz:if>--%>
		<%--</td>--%>

		<td>
			<a  onclick="dayprice.edit(this ,'${dayprice.id}' ,'${dayprice.price}','${dayprice.name}')" class="btn btn-success" >修改</a>
			<a href="javascript:void(0);" data-opid="${dayprice.id}" onclick="tzAdmin.remove(this)" class="btn btn-danger">删除</a>
		 </td>
	</tr>
</c:forEach>
